ls /root/k8s/mlsql/test-mount
ingress.yaml  MLSQLDockerfile  mlsql-start.sh  service.yaml  streamingpro-mlsql-spark_3.0_2.12-2.1.0-SNAPSHOT.jar  test.yaml
 
 
kubectl create -f test.yaml
 
 
# 稍等几秒，查看容器的id
docker ps | grep spark-hello
e4afb60409ab   172.16.2.66:5000/spark                                           "/bin/sh -c 'while t…"   10 days ago   Up 10 days             k8s_spark-hello_spark-hello-598ffbb77d-286vs_default_3fa81533-4816-44f6-9462-3cf775843033_0
 
 
#进入容器
docker exec -it e4afb60409ab /bin/sh
cd /opt/mlsql/
nohup sh mlsql-start.sh &
 
 
# 在用浏览器访问的机器增加域名映射
# 在/etc/hosts中增加两个域名的映射
#172.16.2.62 t1-24-12 hello.mlsql.com hello.ui.com
